<div ng-controller="EmbeddedController">
    <div jsontext ui-codemirror="viewerOptions" ng-required='isRequired(header)' ng-model='doc[header]'></div>
</div>